using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Produce.Application.DTO.Input
{
    /// <summary>
    /// 设置指定人员排班的输入模型
    /// </summary>
    public class PersonScheduleInput
    {
        /// <summary>
        /// 人员ID（关联到CustomerModel的Id）
        /// </summary>
        [Required(ErrorMessage = "人员ID不能为空")]
        public long PersonId { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        [Required(ErrorMessage = "日期不能为空")]
        public DateTime Date { get; set; }

        /// <summary>
        /// 班次类型（0-休息，1-上班，2-加班，3-请假）
        /// </summary>
        [Required(ErrorMessage = "班次类型不能为空")]
        public int Type { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        public string Remark { get; set; } = string.Empty;

        /// <summary>
        /// 创建人
        /// </summary>
        [Required(ErrorMessage = "创建人不能为空")]
        public string CreatedBy { get; set; } = "system";
    }
}